package com.daur.scwcd.test.servlets;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class PortsTestServlet extends HttpServlet {

	private static final long serialVersionUID = 5018086359370656399L;

	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException{
		PrintWriter writer = response.getWriter();
		writer.println("Remote port: " + request.getRemotePort());
		writer.println("Server port: " + request.getServerPort());
		writer.println("Local port: " + request.getLocalPort());
		writer.flush();
	}

}
